﻿using System.Windows.Controls;
using SnakeGame.ViewModels;

namespace SnakeGame.Views
{
    /// <summary>
    /// Interaction logic for AnswerPage.xaml
    /// </summary>
    public partial class AnswerPage : Page
    {
        private AnswerPageViewModel _answerPage;
        public AnswerPage()
        {
            InitializeComponent();
        }

        public void Initialize(QuestionFrame qFrame, bool isWin)
        {
            _answerPage = new AnswerPageViewModel();
            _answerPage.Initialize(qFrame, isWin);
            DataContext = _answerPage;
        }
    }
}
